package com.sharp.portal.dao.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

 /**
 * Title: CoPortal
 * Description: Copyright: Copyright (c) 2022 Company: Sharp Ltd.
 *
 * @author Sharp
 * @date 2022/10/08 10:32
 */

/**
 * 后台管理页面查询条件
 */
@ApiModel(value = "后台管理页面查询条件")
@Data
@Table(name = "co_portal")
public class CoPortal {
    /**
     * 路径
     */
    @Id
    @Column(name = "`path`")
    @ApiModelProperty(value = "路径")
    private String path;

    /**
     * 页面英文
     */
    @Column(name = "`value`")
    @ApiModelProperty(value = "页面英文")
    private String value;

    /**
     * 页面中文
     */
    @Column(name = "description")
    @ApiModelProperty(value = "页面中文")
    private String description;

    /**
     * 对应数据库名称
     */
    @Column(name = "sql_db_name")
    @ApiModelProperty(value = "对应数据库名称")
    private String sqlDbName;

    /**
     * 对应数据库表名
     */
    @Column(name = "sql_table_name")
    @ApiModelProperty(value = "对应数据库表名")
    private String sqlTableName;

    /**
     * 是否只读
     */
    @Column(name = "read_only")
    @ApiModelProperty(value = "是否只读")
    private String readOnly;

    /**
     * 是否树形结构
     */
    @Column(name = "tree_format")
    @ApiModelProperty(value = "是否树形结构")
    private String treeFormat;

    /**
     * 添加按钮
     */
    @Column(name = "add_button")
    @ApiModelProperty(value = "添加按钮")
    private String addButton;

    /**
     * 修改按钮
     */
    @Column(name = "modify_button")
    @ApiModelProperty(value = "修改按钮")
    private String modifyButton;

    /**
     * 复制按钮
     */
    @Column(name = "copy_button")
    @ApiModelProperty(value = "复制按钮")
    private String copyButton;

    /**
     * 生效按钮
     */
    @Column(name = "disable_button")
    @ApiModelProperty(value = "生效按钮")
    private String disableButton;

    /**
     * 删除按钮
     */
    @Column(name = "delete_button")
    @ApiModelProperty(value = "删除按钮")
    private String deleteButton;

    /**
     * 上传按钮
     */
    @Column(name = "upload_button")
    @ApiModelProperty(value = "上传按钮")
    private String uploadButton;

    /**
     * 导出按钮
     */
    @Column(name = "export_button")
    @ApiModelProperty(value = "导出按钮")
    private String exportButton;

    /**
     * 刷新按钮
     */
    @Column(name = "refresh_button")
    @ApiModelProperty(value = "刷新按钮")
    private String refreshButton;

    /**
     * 创建时间
     */
    @Column(name = "create_at")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    /**
     * 修改时间
     */
    @Column(name = "update_at")
    @ApiModelProperty(value = "修改时间")
    private Date updateAt;

    /**
     * 有效性
     */
    @Column(name = "`valid`")
    @ApiModelProperty(value = "有效性")
    private String valid;
}